package work;

import java.net.SocketTimeoutException;

public class TryCatchDemo {
    public static void main(String[] args) {
        System.out.println(">>>>>>>");
        try {
            String s="nsssull";
            System.out.println(s.charAt(-9));
            String s2=null;
            System.out.println(s2.length());
        }catch (Exception e){
            System.out.println(e);
        }
    }
}
